package net.wenku8.reader.model.book;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import com.thoughtworks.xstream.converters.extended.ToAttributedValueConverter;

@XStreamAlias("chapter")
@XStreamConverter(value= ToAttributedValueConverter.class, strings={"title"})
public class Chapter {
    @XStreamAlias("cid")
    @XStreamAsAttribute
    String chapterId;
    String title;

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

}
